package com.ffcs.crmd.tsp.server.api;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * 
 * 功能说明:数据库连接池提供者
 *
 * @author ZHONGFUHUA
 * 
 * @since 2.0.0-SNAPSHOT
 *
 */
public interface ConnectionProvider {

    /**
     * 
     * 功能说明:获取连接
     * 
     * @return 连接
     * @throws SQLException
     */
    public Connection getConnection() throws SQLException;
    
    /**
     * 
     * 功能说明:关闭
     * 
     * @throws SQLException
     */
    public void shutdown() throws SQLException;
    
    /**
     * 
     * 功能说明:初始化
     * 
     * @throws SQLException
     */
    public void initialize() throws SQLException;

}